package com.feri.sg.goods.controller;

import com.feri.sg.goods.service.ActivityService;
import com.feri.sg.pojo.bo.ActivityAddBo;
import com.feri.sg.pojo.bo.BaseController;
import com.feri.sg.pojo.vo.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 *
 */
@RestController
@RequestMapping("/server/activity/")
public class ActivityController
{
    @Resource
    private ActivityService service;
    @PostMapping("save")
    public R save(@RequestBody ActivityAddBo bo){
        return service.save(bo);
    }
    @GetMapping("all")
    public R all(){
        return service.all();
    }
}
